package com.hnzq.cloud.api;

import com.hnzq.cloud.areaParam.AddSiteAreaParam;
import com.hnzq.cloud.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "fresh-address",contextId = "SiteAreaApi",path = "freSiteArea")
public interface SiteAreaApi {
    @PostMapping("addSiteArea")
    Result addSiteArea(@RequestBody AddSiteAreaParam addSiteAreaParam);
    @DeleteMapping("deleteArea")
    Result deleteArea(@RequestParam("areaId") Integer areaId);
}
